package com.maserb.monitor.repository;

import com.maserb.monitor.entity.Function;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FunctionRepository extends JpaSpecificationExecutor<Function>, PagingAndSortingRepository<Function, String> {
    List<Function> findByFunctionTypeOrderByFunctionOrder(Short functionType);
}
